package com.lp.business.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.iframework.commons.domain.order.Order;
import org.iframework.commons.domain.pager.Pager;
import org.iframework.support.spring.hibernate.dao.BaseHibernateDaoSupport;
import org.iframework.support.spring.hibernate.service.BaseServiceSupport;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.lp.business.dao.DownloadDao;
import com.lp.business.model.Download;
import com.lp.business.service.DownloadService;

/**
 * 下载信息模型服务接口实现类<br>
 * 说明：支持方法查阅实现接口
 * 
 * @author lp
 * @email lp@qq.com
 * @date 2018-08-23 10:38:18
 */
@Service("downloadService")
public class DownloadServiceImpl extends BaseServiceSupport<Download, String> implements DownloadService {
	@Resource(name = "downloadDao")
	public void setBaseHibernateDaoSupport(@Qualifier("downloadDaoImpl") BaseHibernateDaoSupport<Download, String> baseHibernateDaoSupport) {
		this.baseHibernateDaoSupport = baseHibernateDaoSupport;
	}

	@Override
	public List<Map<String, Object>> findDownloads(Download model, Order order, Pager pager) {
		return ((DownloadDao)this.baseHibernateDaoSupport).findDownloads(model, order, pager);
	}
	
	//自行添加自定义业务方法
}